package com.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.core.convert.converter.Converter;

public class PageConverter implements Converter<IPage<?>,String> {

    @Override
    public String convert(IPage<?> source) {

        return String.format("%s_%s",source.getCurrent(),source.getSize());
    }
}
